package com.guigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 供货商信息表
 * </p>
 *
 * @author Mr.Zhang
 * @since 2025-03-12
 */
@Data
@TableName("supplier")
public class Supplier implements Serializable {

    private static final long serialVersionUID=1L;

    //@ApiModelProperty(value = "供货商id，主键，自增")
    @TableId(value = "supplier_id", type = IdType.AUTO)
    private Integer supplierId;

    //@ApiModelProperty(value = "前台用户id")
    private Integer consumerId;

    @TableField(exist = false)
    private String nickName;

    //@ApiModelProperty(value = "帐户余额")
    private Float balance;

    //@ApiModelProperty(value = "公司名称")
    private String companyName;

    //@ApiModelProperty(value = "法定代表人姓名")
    private String name;

    //@ApiModelProperty(value = "手机号码")
    private String phone;

    //@ApiModelProperty(value = "营业执照图片路径")
    private String licenseLink;

    //@ApiModelProperty(value = "公司地址，格式为省-市-区-街道，例如：43-4301-430104-430104004")
    private String address;

    //@ApiModelProperty(value = "详细地址")
    private String detailAddress;

    //@ApiModelProperty(value = "申请时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createDate;

    //@ApiModelProperty(value = "审核人")
    private String checker;

    //@ApiModelProperty(value = "审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date checkTime;

    //@ApiModelProperty(value = "审核理由")
    private String checkReason;

    //@ApiModelProperty(value = "审核状态，S001-1（等待审核）、S001-2（审核未通过）、S001-3（审核通过）")
    private String checkTag;

    //@ApiModelProperty(value = "是否删除，C001-1（未删除）、C001-2（已删除）")
    private String status;

    private Double lng;

    private Double lat;


}
